<!DOCTYPE html>
<html lang="zh-cn">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<meta name="renderer" content="webkit">
<title></title>
<link rel="stylesheet" href="{{ asset('admin_style/css/pintuer.css') }}">
   <link rel="stylesheet" href="{{ asset('admin_style/css/admin.css') }}">
    <script src="{{asset('admin_style/js/jquery.js')}}"></script>
    <script src="{{asset('admin_style/js/pintuer.js')}}"></script>
</head>
<style>
    .col{color:red}
</style>
<body>
<div class="panel admin-panel margin-top">
  <div class="panel-head" id="add"><strong><span class="icon-pencil-square-o"></span> 添加会员</strong></div>
  <div class="body-content">
    <form method="post" class="form-x" action="{{url('/user/add_do')}}" enctype="multipart/form-data">
        {{ csrf_field() }}
      <div class="form-group">
        <div class="label">
          <label>会员名称：</label>
        </div>
        <div class="field">
          <input type="text" class="input" name="u_name" value="{{ old('u_name') }}" />
            @if($errors->has('u_name'))
                <span class="col">{{$errors->first('u_name')}}</span>
            @endif
          <div class="tips"></div>
        </div>
      </div>
      <div class="form-group">
        <div class="label">
          <label>登录密码：</label>
        </div>
        <div class="field">
          <input type="text" name='password' class="input" value="{{ old('password') }}"/>
            @if($errors->has('password'))
                <span class="col">{{$errors->first('password')}}</span>
            @endif
        </div>
      </div>
      <div class="form-group">
        <div class="label">
          <label>确认密码：</label>
        </div>
        <div class="field">
          <input type="text" name='password_confirmation' class="input" value="{{ old('password_confirmation') }}"/>
            @if($errors->has('password_confirmation'))
                <span class="col">{{$errors->first('password_confirmation')}}</span>
            @endif
        </div>
      </div>
      <div class="form-group">
      	<div class="label">
          <label>性别：</label>
        </div>
        <div class="field">
      		<div class="product-mulde product-mulde-a">
						      	<ul>
						      		<li>
                                        <input type="radio" name="u_sex" value="男">男
                                        <input type="radio" name="u_sex" value="女">女
						      		</li>
						      	</ul>
                @if($errors->has('u_sex'))
                    <span class="col">{{$errors->first('u_sex')}}</span>
                @endif
						      </div>
   			</div>
        </div>
        <div class="form-group">
        		<div class="label">
          		<label>所在省：</label>
        		</div>
        		<div class="field">
        			<input type="text" name='u_r_province' class="input" value="{{ old('u_r_province') }}"/>
                    @if($errors->has('u_r_province'))
                        <span class="col">{{$errors->first('u_r_province')}}</span>
                    @endif
        		</div>
        </div>
        <div class="form-group">
            <div class="label">
                <label>所在市：</label>
            </div>
            <div class="field">
                <input type="text"  name='u_r_city' class="input" value="{{ old('u_r_city') }}"/>
                @if($errors->has('u_r_city'))
                    <span class="col">{{$errors->first('u_r_city')}}</span>
                @endif
            </div>
        </div>
        <div class="form-group">
        		<div class="label">
          		<label>手机：</label>
        		</div>
        		<div class="field">
        			<input type="text" name="u_phone" class="input" value="{{ old('u_phone') }}"/>
                    @if($errors->has('u_phone'))
                        <span class="col">{{$errors->first('u_phone')}}</span>
                    @endif
        		</div>
        </div>
        <div class="form-group">
            <div class="label">
                <label>描述：</label>
            </div>
            <div class="field">
                <input type="text" name="u_desc" class="input" value="{{ old('u_desc') }}"/>
            </div>
        </div>
        <div class="form-group">
        <div class="label">
          <label>头像：</label>
        </div>
        <div class="field">
            <input type="file" name="slogo" id="1" style="display: none" />
            <input type="button" class="button bg-blue margin-left" id="image1" value="+ 浏览上传" onclick="document.getElementById(1).click();">
        </div>
      </div>
      <div class="form-group">
        <div class="text-center">
							      <div class="field">
                                  <input class="button bg-green" type="submit" value="确定">
                                  <input type="reset" class="button bg-red" value="重置" />
							      </div>
							    </div>
      </div>
    </form>
  </div>
</div>
</body>
</html>